<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>PhpBy个人轻博客 - 首页</title>
    <link rel="dns-prefetch" href="http://s.w.org/">
    <link rel="stylesheet" id="main-css" href="/static/index/css/index.css" type="text/css" media="all">
    <meta name="keywords" content="PhpBy个人轻博客">
    <meta name="description" content="PhpBy个人轻博客">
</head>
<style type="text/css">
    a:link,a:visited{
        text-decoration:none;  /*超链接无下划线*/
    }
    a:hover{
        text-decoration:underline;  /*鼠标放上去有下划线*/
    }
</style>
<body class="page-template-default page page-id-2119 uimo ui-c3">
<section class="container">
    {:small('left/index')}
    <div class="content-wrap">
        <div class="content">
            <h3 class="title">
                <strong>
                    {if $category_id}
                        {$category_name}
                    {else}
                        最新发布
                    {/if}
                </strong>
            </h3>
            {if $article_list}
            {volist name="article_list" id="vo"}
            {if $vo['is_doc'] == 1}
            <article class="excerpt">
                <header>
                    {if !$category_id}
                    <a class="cat label label-important" href="{:url('index/index/index',['category_alias'=>$vo['category_alias']])}" title="{$vo.category_name}"> {$vo.category_name}<i class="label-arrow"></i> </a>
                    {/if}
                    <h2><a href="{:url('index/index/doc',['id'=>$vo['id']])}" title="{$vo.title}">{$vo.title}</a></h2>
                </header>
                <p class="text-muted time">JunStar 发布于 {$vo.create_time}</p>
                <div class="cols-2">
                    {volist name="vo.article_list" id="voo"}
                    <a href="{:url('index/index/doc',['id'=>$voo['doc_id'],'article_id'=>$voo['id']])}" class="list_a">{$voo.title}</a><br>
                    {/volist}
                </div>
                <p class="text-muted views"> <span class="post-views">阅读({$vo.view_count})</span> </p>
            </article>
            {else}
            <article class="excerpt">
                <header>
                    {if !$category_id}
                    <a class="cat label label-important" href="{:url('index/index/index',['category_alias'=>$vo['category_alias']])}" title="{$vo.category_name}"> {$vo.category_name}<i class="label-arrow"></i> </a>
                    {/if}
                    <h2><a href="{:url('index/index/content',['id'=>$vo['id']])}" title="{$vo.title}">{$vo.title}</a></h2>
                </header>
                <p class="text-muted time">JunStar 发布于 {$vo.create_time}</p>
                <p class="note">{:mb_substr($vo['content'],0,200,'UTF-8')}...</p>
                <p class="text-muted views"> <span class="post-views">阅读({$vo.view_count})</span> </p>
            </article>
            {/if}
            {/volist}
            {else}
            <article class="excerpt">
                <p class="text-muted time">暂无数据</p>
            </article>
            {/if}
        </div>
        <div class="pagination pagination-multi">{$page|raw}</div>
    </div>

    {:small('right/index')}
    {:small('footer/index')}
</section>
</body>
</html>